import { dialog } from '@gis/lib/components/antd-dialog';

export function openAlarmHandleDialog(data) {
  return new Promise((resolve, reject) => {
    dialog({
      content: () => import('./warning-handle.vue'),
      contentProps: {
        id: data.id,
      },
      dialogProps: {
        title: '预警处理',
        onOk: () => resolve(true),
      },
    });
  });
}
